package com.ai.bitcoin.jpa.service;

import com.ai.bitcoin.bo.BccNewsTop5BO;
import com.ai.bitcoin.jpa.entity.BccNews;
import com.ai.bitcoin.vo.BccNewsTop5VO;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author Jason
 * @date 2018.5.13
 **/
public interface BccNewsService {
    List<BccNews> findByBatchNo(String batchNo);

    List<BccNews> findByBatchNo(String batchNo, Pageable pageable);

    List<BccNews> findAll(Pageable pageable);

    List<BccNews> queryCurrentNewsByBccId(String bccId);

    /**
     * 根据新闻获取新闻
     *
     * @param newsId
     * @return
     */
    BccNews queryByNewsId(String newsId);

    BccNewsTop5VO getTop3BccNewsBccId(BccNewsTop5BO newsTop5BO);
}
